<template>
  <div id="common" v-if="isShow">
    <div class="close" @click="closePane">×</div>
    <div class="title">{{form.title}}</div>
    <div class="content">
        <el-row>
            <el-col :span="8">所在楼层：</el-col>
            <el-col :span="16">{{form.lc}}</el-col>
        </el-row>
        <el-row>
            <el-col :span="8">设备名称：</el-col>
            <el-col :span="16">{{form.name}}</el-col>
        </el-row>
        <el-row>
            <el-col :span="8">所在位置：</el-col>
            <el-col :span="16">展示中心大楼</el-col>
        </el-row>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      name:"---",
      isShow: false,
      form:{}
    };
  },
  mounted() {
    window.handelCommon = this.handelCommon
  },
  methods: {
    handelCommon(info){
      this.form = info;
      this.isShow = true;
    },
    // 关闭弹窗
    closePane() {
      this.isShow = false;
    },
  },
};
</script>
<style scoped>
#common {
  margin: 0 auto;
  box-sizing: border-box;
  position: absolute;
  left: 36%;
  top: 520px;
  width: 793px;
  height: 533px;
  color: white;
  background: url("../../../static/images/popups/detailsPane.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  transition: all 1.2s;
}
/* 右上角关闭按钮 */
.close {
  float: right;
  font-size: 50px;
  font-weight: 900;
  margin-right: 30px;
  margin-top: 10px;
  transition: all 1s;
}
.close:hover {
  transform: scale(1.1);
  color: red;
  cursor: pointer;
}
.content {
  box-sizing: border-box;
  width: 100%;
  height: 800px;
  padding: 80px;
  margin-top: 30px;
}
.title {
  position: absolute;
  left: 40px;
  top: 30px;
  font-size: 32px;
  font-weight: 800;
}
.el-row{
    margin: 40px ;
    font-size: 30px;
}
</style>